// import { getlink } from "@/api/getapi.js"
import { postlink } from "@/api/postapi.js"

export let site = {
        state: {
            site: []
        },
        mutations: {
            axiosnewsite(state, payload) {
                state.site = payload
            }
        },
        actions: {
            axiossite(context, payload) {
                postlink(payload.url, payload.usp).then((ok) => {
                    console.log(ok)
                    context.commit("axiosnewsite", ok)
                }).catch((err) => {
                    console.log(err)
                })
            }
        }
    }
    // export default cont